import 'package:oramemo/generated/json/base/json_convert_content.dart';
import 'package:oramemo/model/inline_object3.dart';

InlineObject3 $InlineObject3FromJson(Map<String, dynamic> json) {
  final InlineObject3 inlineObject3 = InlineObject3();
  final List<int>? avatarfile = (json['avatarfile'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<int>(e) as int).toList();
  if (avatarfile != null) {
    inlineObject3.avatarfile = avatarfile;
  }
  final String? lang = jsonConvert.convert<String>(json['lang']);
  if (lang != null) {
    inlineObject3.lang = lang;
  }
  return inlineObject3;
}

Map<String, dynamic> $InlineObject3ToJson(InlineObject3 entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['avatarfile'] = entity.avatarfile;
  data['lang'] = entity.lang;
  return data;
}

extension InlineObject3Extension on InlineObject3 {
  InlineObject3 copyWith({
    List<int>? avatarfile,
    String? lang,
  }) {
    return InlineObject3()
      ..avatarfile = avatarfile ?? this.avatarfile
      ..lang = lang ?? this.lang;
  }
}